package com.CNMedical.system.mapper;

import java.util.List;

import com.diboot.core.mapper.BaseCrudMapper;
import com.CNMedical.system.domain.DTO.AppletExamScoreDTO;
import com.CNMedical.system.domain.entity.AppletExamScore;
import org.apache.ibatis.annotations.Param;

/**
 * 考试成绩Mapper接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface AppletExamScoreMapper extends BaseCrudMapper<AppletExamScore>
{
    /**
     * 查询考试成绩
     * 
     * @param id 考试成绩主键
     * @return 考试成绩
     */
    public AppletExamScore selectAppletExamScoreById(Long id);

    /**
     * 查询考试成绩列表
     * 
     * @param appletExamScore 考试成绩
     * @return 考试成绩集合
     */
    public List<AppletExamScore> selectAppletExamScoreList(@Param("appletExamScore") AppletExamScoreDTO appletExamScore, @Param("userIdList")List<Long> userIdList);

    /**
     * 新增考试成绩
     * 
     * @param appletExamScore 考试成绩
     * @return 结果
     */
    public int insertAppletExamScore(AppletExamScore appletExamScore);

    /**
     * 修改考试成绩
     * 
     * @param appletExamScore 考试成绩
     * @return 结果
     */
    public int updateAppletExamScore(AppletExamScore appletExamScore);

    /**
     * 删除考试成绩
     * 
     * @param id 考试成绩主键
     * @return 结果
     */
    public int deleteAppletExamScoreById(Long id);

    /**
     * 批量删除考试成绩
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAppletExamScoreByIds(Long[] ids);
}
